package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitUserBannerRouter(Router *gin.RouterGroup) {
	UserBannerRouter := Router.Group("userBanner").Use(middleware.OperationRecord())
	{
		UserBannerRouter.POST("createUserBanner", v1.CreateUserBanner)   // 新建UserBanner
		UserBannerRouter.DELETE("deleteUserBanner", v1.DeleteUserBanner) // 删除UserBanner
		UserBannerRouter.DELETE("deleteUserBannerByIds", v1.DeleteUserBannerByIds) // 批量删除UserBanner
		UserBannerRouter.PUT("updateUserBanner", v1.UpdateUserBanner)    // 更新UserBanner
		UserBannerRouter.GET("findUserBanner", v1.FindUserBanner)        // 根据ID获取UserBanner
		UserBannerRouter.GET("getUserBannerList", v1.GetUserBannerList)  // 获取UserBanner列表
	}
}
